import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const state = {
  aMessage: '',
  bMessage: ''
}
const mutations = {
  transformA (state, payload) {
    state.bMessage = payload.message
  },
  transformB (state, payload) {
    state.aMessage = payload.message
  }
}
export default new Vuex.Store({
  state,
  mutations
})
